<!DOCTYPE html>
<html>
    <head>

     <script src="vue.js"></script>
    
    </head>

    <body>
    <div id="app">
        <div v-bind:id="dataId | foematId">{{message}}</div>
    </div>
    <script>
        var vm = new Vue({
            el:'#app',
            data: {
                message: 'helloworld!',
                dataId:'dff1'
            },
            filters: {
               foematId(value){
                   //字符串处理
                   console.log('过滤器被调用！')
                   return value? value.charAt(1) + value.indexOf('d') :'';
               }
            }
        })
    </script>
    </body>
</html>
